package com.develop.skwen.electricgomall.home.list.holder;

import android.support.annotation.NonNull;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.develop.skwen.basemodule.list.BaseHolder;
import com.develop.skwen.electricgomall.R;
import com.develop.skwen.electricgomall.home.model.HomeData;

/**
 * Created by skwen
 * on 18-5-30
 */

public class RecommendHolder extends BaseHolder<HomeData> {

    private ImageView mImageView;


    public RecommendHolder(View itemView) {
        super(itemView);
        mImageView = findViewById(R.id.item_image);
    }

    @Override
    public void bind(@NonNull HomeData item) {
        Glide.with(mImageView)
                .load(item.getImage())
                .into(mImageView);
    }
}
